package cn.edu.hziee;

import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.Map;

public class ProductionDB {
    private static Map<String, Production> Productions = new LinkedHashMap<String, Production>();
        static {
            Productions.put("1", new Production("1","JavaWeb开发",50,1));
            Productions.put("2", new Production("2","jdbc开发",60,1));
            Productions.put("3", new Production("3","Java基础",70,1));
            Productions.put("4", new Production("4","Spring开发",80,1));
            Productions.put("5", new Production("5","SSM框架",90,1));
        }

        public static Collection<Production> getAll(){
            return Productions.values();
        }

        public static Production getProduction(String id){
            return Productions.get(id);
        }
}
